var config = {
    /**
     * 增删改查，api地址
     * @total 获取总条数api
     * @get   获取数据api
     * @edit  修改数据api
     *
     * model        类名
     * action       方法名 
     */
	set_url:{
        "total": { model: "goods", action: "get_goods_total" },
        "get": { model: "goods", action: "get_goods_all" },
        "edit": { model: "goods", action: "on_goods_edit" }
	},


	/**
	 * 搜索配置
	 * @type {Array}
	 */
	select:[
		[{
			label:"",
			type:"select",
			field:"client_type",
			labelWidth: "120",
            placeholder: "请选择客户类型",
            span: 6,
            option:[{
            	value:'aa',
            	label:'第一类',
            },{
            	value:'bb',
            	label:'第二类',
            }]
		},{
			label:"",
			type:"input",
			field:"CManage_selent",
			labelWidth:"120",
			placeholder:"输入客户编号/名称/联系人/电话查询",
			span:6,
		},{
			label:"",
			type:"checkbox",
			field:"client_status",
            option:[{
            	value:1,
            	label:'显示禁用客户',
            }],
            span:12,
		}]
	],

	/**
	 * 表格批量处理按钮配置
	 * @type {Array}
	 */
	action:[{
		label:"新增",
		type:"primary",
		icon:"",
		callback:{
			type:"target",
			path:"/purchase/purchaseRecords",
		}
	},{
		label:"禁用",
		type:"default",
		icon:"",
		callback:{
			type:"target",
			path:"/empty",
		}
	},{
		label:"启用",
		type:"default",
		icon:"",
		callback:{
			type:"target",
			path:"/empty",
		}
	},{
		label:"导入",
		type:"default",
		icon:"",
		callback:{
			type:"target",
			path:"/empty",
		}
	},{
		label:"导出",
		type:"default",
		icon:"",
		callback:{
			type:"target",
			path:"/empty",
		}
	},{
		label:"删除",
		type:"default",
		icon:"",
		callback:{
			type:"target",
			path:"/empty",
		}
	}],



    /**
     * 表格配置
     * @type {Boolean}
     */ 
    selection: true,
    model: 'input',
	table:[{
		label:"操作",
		type:"action",
		field:"action",
		sortable:false,
		option:[{
			label:"查看",
			type:"primary",
			icon:"",
			callback:{
				type:"alert",
			}
		},{
			label:"修改",
			type:"default",
			icon:"",
			callback:{
				type:"target",
				params: ['goods_id', 'goods_sn']
			}
		},{
            label: "删除",
            callback: {
                type: 'message',
                url: ['goods', 'on_goods_delete'],
                params: ['goods_id'],
                config: {
                    type: 'warning',
                    title: '系统提示',
                    content: '此操作将永久删除删除文件不可恢复，是否继续！',
                    confirm: '继续',
                    cancel: '取消',
                    confirmTips: {
                        type: 'success',
                        message: '删除成功！',
                    },
                    cancelTips: {
                        type: 'info',
                        message: '您取消了删除！',
                    }
                }
            },
            type: "primary",
            icon: "",
        }]
	},{
        label: "客户类别",
        type: "input",
        field: "client_type",
        sortable: false,
        amend:false,
	},{
        label: "客户等级",
        type: "input",
        field: "client_level",
        sortable: false,
        amend:false,
	},{
		label: "客户编号",
        type: "input",
        field: "client_sn",
        sortable: false,
        amend:false,
	},{
		label: "客户名称",
        type: "input",
        field: "client_name",
        sortable: false,
        amend:false,
	},{
		label: "销售人员",
        type: "input",
        field: "client_sales",
        sortable: false,
        amend:false,
	},{
		label: "联系人",
        type: "input",
        field: "client_contact",
        sortable: false,
        amend:false,
	},{
		label: "手机",
        type: "input",
        field: "client_tel",
        sortable: false,
        amend:false,
	},{
		label: "座机",
		type: "input",
		field:"client_mobile",
        sortable: false,
        amend:false,
	},{
		label: "QQ/微信/Email",
		type: "input",
		field:"client_QWE",
		labelWidth:120,
        sortable: false,
        amend:false,
	},{
		label: "应收款余额",
		type: "input",
		field:"client_balance",
        sortable: false,
        amend:false,
	},{
		label: "送货地址",
		type: "input",
		field:"client_address",
		labelWidth:180,
        sortable: false,
        amend:false,
	},{
		label: "已授权用户",
		type: "input",
		field:"client_authorization",
        sortable: false,
        amend:false,
	},{
		label: "状态",
		type: "input",
		field:"CManage_status",
        sortable: false,
        amend:false,
	}],


    /**
     * 分页配置
     * @type {Object}
     */
    page: {
        size: 10,
        current: 1,
        total: 100
    }


}
export default config